package com.example.controller;

import com.example.pojo.AjaxResult;
import com.example.service.ChatRecordService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 会话记录Controller
 * @author Slience
 * @date 2025/7/23 15:09
 **/
@RestController("/chat")
public class ChatRecordController {

    @Resource
    private ChatRecordService chatRecordService;

    /**
     * 查询会话记录详情
     * @param id 会话记录id
     * @return 会话记录详情
     */
    @GetMapping("/detail")
    public AjaxResult<?> detail(String id){
        return AjaxResult.success(chatRecordService.queryRecordDetail(id));
    }


}
